-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #1458
base: master
Are you sure you want to change the base?
Dev #1458
Conversation
@Override | ||
public void validate() throws TelegramApiValidationException { | ||
if (userId == 0) { | ||
throw new TelegramApiValidationException("UserId parameters must not be 0", this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserId parameters
parameter
shouldn't be plural
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an inconsistency in the user id validation messages. Probably a constant or even separate validator will be needed in the future to avoid such mistakes. I'll probably provide some PR later.
*/ | ||
@JsonProperty(IS_CANCELLED_FIELD) | ||
@NonNull | ||
private Boolean isCancelled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both canceled
and cancelled
are acceptable, but since Bot API uses single 'l
' character, isn't is better to stick to official parameter naming?
…1438) Co-authored-by: Ruben Bermudez <[email protected]>
Co-authored-by: Ruben Bermudez <[email protected]>
No description provided.